import pygame
import sys
from pygame.locals import *


pygame.init()
HEIGHT,WIDTH = 1000,1000
SCREEN_SIZE = (HEIGHT,WIDTH)
screen = pygame.display.set_mode(SCREEN_SIZE)

#set title
pygame.display.set_caption("vehicle")

clock = pygame.time.Clock()

#vehicle = Vehicle()


#USEREVENT
#EVNET = pygame.USEREVENT + 1
#pygame.time.set_timer(EVENT,1000)

#
#screen.blit()

while True:
    #event
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        elif event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                pygame.quit()
                sys.exit()
        #elif event.type == EVENT:
        #    pass
    
    screen.fill((255,255,255))
    #key
    key = pygame.key.get_pressed()
    
    #change attribute
    #draw object
    
    #screen.blit(vehicle.surf, vehicle.rect)



    #detect crash
    #crash_result = pygame.sprite.collide_rect(spirite_1, spirite_2)


    pygame.display.update()
    pygame.display.flip()
    clock.tick(50)

